package com.handong.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
public class MyRestController {

    @GetMapping("/rest")
    public Map testRest(){
        Map<String, String> map = new HashMap<>();
        map.put("上海","n1");
        map.put("北京","n2");
        map.put("深圳","n3");
        return map;
    }

}
